#include <ros/ros.h>
#include <std_msgs/String.h>

int main(int argc, char* argv[])
{
    ros::init(argc, argv, "yao_node");
    printf("节点开始发送\n");

    ros::NodeHandle nh;
    ros::Publisher pub = nh.advertise<std_msgs::String>("qiudaiqun",10);

    ros::Rate loop_rate(10);

    while(ros::ok())
    {
        printf("开始求带\n");
        std_msgs::String msgs;
        msgs.data = "求求带飞摇摇公主";
        pub.publish(msgs);
        loop_rate.sleep();
    }
    return 0;
}
